package com.qf.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("/hello")
public class HelloController {
    @RequestMapping("spring")
    public String Hello1(){
        System.out.println("HelloSpringMVC");
        return "/success.jsp";
    }
    @RequestMapping("world")
    public String Hello2(){
        System.out.println("Helloworld");
        return "/success.jsp";
    }
}
